package smzdm.sign;

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.support.PageFactory;

import smzdm_pages.HomePage;

public class AutoSign {
	

	
	public static void main(String[] args) throws InterruptedException{
		
		WebDriver driver = new FirefoxDriver();
		
		HomePage home=new HomePage(driver);
	
		PageFactory.initElements(driver, home);
		
		home.openAndWait("http://www.smzdm.com");
		driver.manage().window().maximize();
		home.loginToSMZDM("yangrui.ruc@qq.com", "tyfg81741984");
//		home.loginToSMZDM("lzxking8581265@163.com", "passw0rd");
		 Thread.sleep(5000);
		home.signEveryData();
		 Thread.sleep(5000);
		driver.close();
		
	}
}
